#include <stdio.h>
int main()
{
    FILE *fp;
    char s[120];
    fp = fopen("../b.c","r");
    fscanf(fp,"%s",s);
    printf("scanf read: %s\n",s);
    fgets(s,120,fp);
    printf("fgets read: %s\n",s);
    fgets(s,120,fp);
    printf("fgets read: %s\n",s);


    return 0;
}
